/*
 * Copyright (c) 2017, www.zm0618.com All Rights Reserved..
 */

package com.light.hessian.provider.discovery;

import com.light.hessian.provider.config.ProviderInfo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhaojun on 2017/02/09.
 */
public class ProviderInfoHolder {

    protected static final Map<String,List<ProviderInfo>> providerInfoHoldMap=new HashMap<String, List<ProviderInfo>>();

    public  static void registerProviderInfo(String provider,List<ProviderInfo> list){
            providerInfoHoldMap.put(provider,list);
    }

    public  static List<ProviderInfo>  getProviderInfo(String provider){
            return providerInfoHoldMap.get(provider);
    }
}
